<template>
	<view>
		<block v-if="myteamList.length">
		<view class="invvItem modelBox" v-for="(item,i) in myteamList" :key="i" @click="$util.redirectTo('/otherpages/userDetali/userDetali',{id:item.id})">
			<image :src="item.avatar" mode=""></image>
			<view class="">{{item.nickname||'微信用户'}}</view>
		</view>
		</block>
		<block v-else>
			<noneList></noneList>
		</block>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				myteamList:[]
			};
		},
		onLoad() {
			this.myteamListFn()
		},
		methods:{
			myteamListFn() {
				this.$api.sendRequest({
					url:'/api/User/myteamList',
					data:{
						page:1,
						limit:10
					},success:res=>{
						this.myteamList = res.data.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.invvItem {
		display: flex;
		align-items: center;
		image {
			width: 100rpx;
			height: 100rpx;
			border-radius: 50%;
			margin-right: 20rpx;
		}
	}
</style>
